<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/page/tag.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>药品采购平台</title>
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="${baseurl}/styles/login.css">
<script type="text/javascript" src="${baseurl}/js/jquery-easyui/jquery.min.js"></script>
<script type="text/javascript">
	//登录提示方法
	function loginsubmit() {
		$("#loginform").submit();
	}
	$(document).ready(function () {
	  var arr=$("input[type='text'],input[type='password']");
	  for(var i=0;i<arr.length;i++){
	    if($(arr).index(arr[i])==arr.length-1){
        $(arr[i]).css("width","60px");
	    }else{
        $(arr[i]).css("width","130px");
	    }
	  }
	  randomcode_refresh();
	  $("input.btnalink").css("margin","auto");
	  $("tr>td:odd").css("text-align","left");
	})
	function randomcode_refresh(){
	  var url="${baseurl}/validatecode.jsp";
    var timestamp = new Date().getTime();
    $("#randomcode_img").attr("src",url+"?t="+timestamp);
  }
</script>
</head>
<body style="background: url('${baseurl}/images/login/bg1.jpg');">
	<div class="logincon">
    <img src="${baseurl}/images/login/logo.png">
		<img src="${baseurl}/images/login/bg2.png">
    <form id="loginform" action="${baseurl}/login.action" method="post">
        <table>
        <tbody>
          <tr>
            <td>
              <span>用&nbsp;户&nbsp;名</span>
            </td>
            <td>
              <input type="text" name="usercode">
            </td>
          </tr>
          <tr>
            <td>
              <span>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码</span>
            </td>
            <td>
              <input type="password" name="password">
              <label>
                <input type="checkbox" name="rememberMe">记住我
              </label>
            </td>
          </tr>
          <tr>
            <td>
              <span>验&nbsp;证&nbsp;码</span>
            </td>
            <td>
              <input type="text" name="randomcode" size="8">
              <img id="randomcode_img" width="66" height="24" style="vertical-align: middle;">
              <a href="javascript:" onclick="randomcode_refresh()">
                <span>刷新</span>
              </a>
            </td>
          </tr>
          <tr>
            <td colspan="2">
              <input style="background:no-repeat center/100% url('${baseurl}/images/login/login_in.jpg')" type="button" class="btnalink" onclick="loginsubmit()">
              <input style="background:no-repeat center/100% url('${baseurl}/images/login/login_res.jpg')" type="reset" class="btnalink" value="">
            </td>
          </tr>
        </tbody>
      </table>
    </form>
	</div>
</body>
</html>
